'use strict';
const Service = require('egg').Service;
class CommonService extends Service {
    async getOltInfo(oltId){
        try {
            let oltResult = await this.ctx.model.Olt.findOne({_id:oltId})
            return oltResult;
        } catch (error) {
            console.log('从数据库中查询olt信息报错',error);
            throw error;
        }
    }
}

module.exports = CommonService;